#include <QtGui/QApplication>  
#include <QTextCodec>
#include "EditorWidget.h"   

//#   if defined(_DEBUG) || defined(DEBUG)
//#		pragma comment( lib, "OgreMain_d.lib")
//#		pragma comment( lib, "OIS_d.lib")
//#		pragma comment( lib, "OgreTerrain_d.lib")
//#   else
//#		pragma comment( lib, "OgreMain.lib")
//#		pragma comment( lib, "OIS.lib")
//#		pragma comment( lib, "OgreTerrain.lib")
//#   endif

int main(int argc, char *argv[])   

{   

	QApplication a(argc, argv);   

	QTextCodec::setCodecForLocale(QTextCodec::codecForName("GB2312"));
	QTextCodec::setCodecForTr(QTextCodec::codecForName("GB2312"));
	QTextCodec::setCodecForCStrings(QTextCodec::codecForName("GB2312"));

	EditorWidget window;         

	window.show();          

	return a.exec();   

}  